let [url,param] =window.location.href.split('?')

let urlParm=new URLSearchParams(param);

let id =urlParm.get('id')

if (id) {
    getProductId(id).then(data=>{
        $('[name = id]').val(data[0].id)
        $('[name=head]').val(data[0].head)
        $('[name=digest]').val(data[0].digest)
        $('[name=details]').val(data[0].details)
        $('[name=classify]').val(data[0].classifly)
        $('[name=anthour]').val(data[0].anthour)
       
      
    })
}